Place button with a certain distance to right DB side

Hey,

please have a look at my attached file. All buttons are placed "spaced" to the list on the left side. The placement of the right edges appeared to be the problem. All the buttons should end on the black line, so that the buttons "Durchsuchen..." and "Ändern..." are not crossed by the frame which is surrounding them.

I tried to place them with

DBE button1 = button(...)
button1->"right"->"inside"->frame

but that doesnt work. Do you have any idea how to fix this?

Thanks!
SystemAdmin - Mon Jan 28 05:11:59 EST 2013

Re: Place button with a certain distance to right DB side
llandale - Mon Jan 28 11:02:09 EST 2013

No code to debug?

  • dbeButton ->"right" ->"inside" ->dbeFrame
That code mostly defines the scope of the Frame, not the Button. It says to make sure the right side of the frame is positioned at least as wide as the right side of the button; it does not say move the Button to the right side of the Frame.

So you need to position that button where you want it, THEN put it's right inside the frame. Try some of these before defining dbeButton:
  • opposite dbBox
  • right dbBox
Or after..
  • dbeButton ->"right" ->"form"

-Louie

I think the following is a reasonable sequence for a Frame:
  • Position where you want the Top-Left of the Frame
  • create the Frame
  • create the Top-Left DBE for the frame.
  • Position this DBE to be Top/Left "Inside" the Frame
  • create all other DBEs intended to be inside the Frame
  • position all these DBEs relative to that Top/Left DBE
  • Define the Right-most and also the Bottom-most DBE as "Inside" the Frame. Often this is the same DBE